package com;

import java.util.Objects;

public class Student {//
    private  String name;
     int i;
     public  int a;
 Student(String name){
     this.name=name;
 }
    public  String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public Student() {
    }

    public Student(String name, int i, int a) {
        this.name = name;
        this.i = i;
        this.a = a;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return i == student.i &&
                a == student.a &&
                Objects.equals(name, student.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, i, a);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", i=" + i +
                ", a=" + a +
                '}';
    }
    public void show(){
        System.out.println("1111");
    }
    public void Method1(){
        System.out.println("Method1");
    }

    public void Method2(String s){
        System.out.println("Method2"+s);
    }
    public String  Method3(String s, int a, int b){
        return  s+" ,"+a+b;
}
  private void Function (){
        System.out.println("Function");
    }


}
